import { configureStore } from '@reduxjs/toolkit';
// 引入主题换肤store分库
import userInfoReducer from '@/store/slices/userInfo';

export const store = configureStore({
  reducer: {
    // 主题换肤store分库
    userInfo: userInfoReducer,
    // 可以根据需要在这里继续追加其他分库
  },
});
export type RootState = ReturnType<typeof store.getState>;
// Inferred type: {posts: PostsState, comments: CommentsState, users: UsersState}
export type AppDispatch = typeof store.dispatch;
